﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using OMOMLibrary.Grid;
using OMOMLibrary.Grid.Terrains;

namespace OMOMLibrary.Generator
{
    public class Generator
    {
        private int length;

        public int Length
        {
            get { return length; }
            set { length = value; }
        }
        private int height;

        public int Height
        {
            get { return height; }
            set { height = value; }
        }

        public Generator(int length,int height)
        {
            this.Height = height;
            this.Length = length;
        }

        public Grid.Grid generateGrid() {
            Grid.Grid grid = new Grid.Grid(Length,Height);
            int i=0,j=0;
            for (i = 0; i < Length; i++)
                for (j = 0; j < Height; j++)
                    grid.Cells[i, j] = new Cell(new Grass());

            return grid;
        }
    }
}
